﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Presentation;

namespace TISSEAN
{
    partial class MainWindow : Form
    {
        private void Mutual()
        {
            MutualDialog dlg = new MutualDialog();

            dlg.ShowDialog();

            if (dlg.DialogResult == DialogResult.OK)
            {
                double[,] entropies = Source.Mutual.Calculate(dlg.FileName, dlg.Boxes, dlg.Length, dlg.Exclude, dlg.Delay, dlg.Column, dlg.Separator);

                display.DisplayRaw( entropies, "Mutual information", new string[] { "tau", "entropy" });
            }
        }
    }
}
